package com.sz.biz.logistics.ord.enums;

import com.sz.common.base.dao.ext.IEnum;

/**
 * Package: com.sz.biz.logistics.ord.enums<br>
 * Function: 订单操作日志枚举类
 * Author: yanhong.xiao.<br>
 * Date: 2017-10-11 11:35:00.
 */
public enum OrdOperationLogEnum implements IEnum {

    CREATE_DRAFT("1", "创建草稿"),
    SUBMIT_ORDER("2","提交订单"),
    ACCEPT_ORDER("3","订单受理"),
    LOGISTICS_INFO_UPDATE("4","物流信息变更"),
    ORDER_STATUS_UPDATE("5","订单状态变更"),
    ORDER_INFO_UPDATE("6","订单信息修改"),
    ORDER_ATTACH_UPDATE("7","附件修改");

    private String code;

    private String name;


    OrdOperationLogEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getName() {
        return name;
    }



    public static OrdOperationLogEnum valueOfEnum(String code) {
        OrdOperationLogEnum[] iss = values();
        for (OrdOperationLogEnum cs : iss) {
            if (cs.getCode().equals(code)) {
                return cs;
            }
        }
        return null;
    }
}
